<template>
  <div class="app-container home">
    <el-row :gutter="20">
      <el-col :span="13">
        <el-col :span="6">
          <div class="circleBox">
            <div class="circleCenter"><div>今日任务已完成</div></div>
            <el-progress type="circle" :percentage="75"></el-progress>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="circleBox">
            <div class="circleCenter"><div>平台安全性</div></div>
            <el-progress type="circle" :percentage="100"status="success"></el-progress>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="circleBox">
            <div class="circleCenter"><div>警报覆盖率</div></div>
            <el-progress type="circle" :percentage="19" status="warning"></el-progress>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="circleBox">
            <div class="circleCenter"><div>报错覆盖率</div></div>
            <el-progress type="circle" :percentage="12" status="exception"></el-progress>
          </div>
        </el-col>
      </el-col>
      <el-col :span="11">
        <div class="demo-image__placeholder">
          <div class="block">
            <el-button type="primary" plain class="item1">用户管理</el-button>
            <el-button type="primary" plain class="item1">角色管理</el-button>
            <el-button type="primary" plain class="item1">部门管理</el-button>
            <el-button type="primary" plain class="item1">日志管理</el-button>
            <el-button type="success" plain class="item1">景区信息管理</el-button>
            <el-button type="success" plain class="item1">景区特殊情况管理</el-button>
            <el-button type="success" plain class="item1">游客信息管理</el-button>
            <el-button type="info" plain class="item1">景区人流量管理</el-button>
            <el-button type="info" plain class="item1">景区摄像头管理</el-button>
            <el-button type="info" plain class="item1">景区营收管理</el-button>
          </div>
        </div>
      </el-col>
      </el-row>
    <el-row :gutter="20" style="margin-top: 30px">
      <el-col :span="9">
        <el-card class="box-card" style="width:430px;height:318px">
          <div slot="header" class="clearfix">
            <span>待办事项</span>
            <el-button style="float: right; padding: 3px 0" type="text" icon="el-icon-share"></el-button>
          </div>
          <el-badge :value="12" class="item" type="primary">
            <el-button size="small">未读</el-button>
          </el-badge>
          <el-badge :value="3" class="item" type="primary">
            <el-button size="small">待提交</el-button>
          </el-badge>
          <el-badge :value="2" class="item" type="primary">
            <el-button size="small">待审核</el-button>
          </el-badge>
          <el-badge :value="2" class="item">
            <el-button size="small">报错</el-button>
          </el-badge>
          <div class="text item">【待审批】公告发布审批<i class="el-icon-search" style="margin-left:20px"> 办理</i></div>
          <div class="text item">【待审批】公告发布审批<i class="el-icon-search" style="margin-left:20px"> 办理</i></div>
          <div class="text item">【待提交】用户数据待提交<i class="el-icon-search" style="margin-left:20px"> 办理</i></div>
          <div class="text item">【未读】录入游客信息数据审核<i class="el-icon-search" style="margin-left:20px"> 办理</i></div>
          <div class="text item">【未读】录入景点信息数据审核<i class="el-icon-search" style="margin-left:20px"> 办理</i></div>
        </el-card>
      </el-col>
      <el-col :span="6">
      <el-card class="box-card2">
        <div slot="header" class="clearfix">
          <span>数据更新总览</span>
          <el-button style="float: right; padding: 3px 0" type="text" icon="el-icon-share"></el-button>
        </div>
        <el-timeline >
          <el-timeline-item
            v-for="(activity, index) in activities"
            :key="index"
            :icon="activity.icon"
            :type="activity.type"
            :color="activity.color"
            :size="activity.size"
            :timestamp="activity.timestamp">
            {{activity.content}}
          </el-timeline-item>
        </el-timeline>
      </el-card>
    </el-col>
      <el-col :span="9">
        <el-card class="box-card3">
          <el-tabs :tab-position="top" style="height: 280px;">
            <el-tab-pane label="首推公告" >
              <div class="text item">【升级】01.28景区数据管理平台版本发布1.0</div>
              <div class="text item">【升级】02.13智慧景区大数据服务平台版本发布1.0</div>
              <div class="text item">【升级】02.21景区数据管理平台版本发布2.0</div>
              <div class="text item">【升级】03.26智慧景区大数据服务平台版本发布2.0</div>
              <div class="text item">【升级】03.31景区数据管理平台版本发布3.0</div>
              <div class="text item">【升级】04.01智慧景区大数据服务平台版本发布3.0</div>
            </el-tab-pane>
            <el-tab-pane label="数据更新">
              <div class="text item">游客信息更更新10条数据<i style="margin-left: 20px">2023-04-01 19:20</i></div>
              <div class="text item">景区任务调度信息更新2条数据<i style="margin-left: 20px">2023-03-22 21:43</i></div>
              <div class="text item">景区特殊情况更新99+条数据<i style="margin-left: 20px">2023-03-14 22:46</i></div>
              <div class="text item">景区信息更新99+条数据<i style="margin-left: 20px">2023-03-12 20:46</i></div>
              <div class="text item">用户信息更新10+条数据<i style="margin-left: 20px">2023-03-10 20:30</i></div>
              <div class="text item">游客信息更新10+条数据<i style="margin-left: 20px">2023-03-08 17:21</i></div>
            </el-tab-pane>
            <el-tab-pane label="安全提醒">
              <div class="text item">验证码错误登录<i style="margin-left: 20px">2023-04-01 11:20</i></div>
              <div class="text item">验证码错误登录<i style="margin-left: 20px">2023-03-22 06:43</i></div>
              <div class="text item">景区特殊情况数据提交格式错误<i style="margin-left: 20px">2023-03-14 22:43</i></div>
              <div class="text item">景区信息提交格式错误<i style="margin-left: 20px">2023-03-12 20:40</i></div>
              <div class="text item">用户信息提交格式错误<i style="margin-left: 20px">2023-03-10 20:25</i></div>
              <div class="text item">游客信息提交格式错误<i style="margin-left: 20px">2023-03-08 17:18</i></div>
            </el-tab-pane>
            <el-tab-pane label="其他">
              <el-empty description="暂无":image-size="100"></el-empty>
            </el-tab-pane>
          </el-tabs>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        src: 'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg',
        activities: [{
          content: '景区信息提交审核通过',
          timestamp: '2023-03-12 20:46',
          color: '#0bbd87'
        }, {
          content: '景区特殊情况提交审核通过',
          timestamp: '2023-03-14 22:46',
          color: '#0bbd87'
        }, {
          content: '景区任务调度提交审核通过',
          timestamp: '2023-03-22 21:43',
          color: '#0bbd87'
        }, {
          content: '游客信息提交审核通过',
          timestamp: '2023-04-01 19:20',
          color: '#0bbd87'
        }]
      }
    }
  };
</script>

<style scoped lang="scss">
  .item {
    margin-top: 10px;
    margin-right: 30px;
  }

  .item1 {
    margin-top: 20px;
    margin-left: 20px;
  }

  .circleBox {
    position: relative;
    text-align: center;
    width: 120px;
    margin-top: 10px;
  }

  .circleCenter {
    margin-bottom: 10px;
  }
  .home {
    blockquote {
      padding: 10px 20px;
      margin: 0 0 20px;
      font-size: 17.5px;
      border-left: 5px solid #eee;
    }
    hr {
      margin-top: 20px;
      margin-bottom: 20px;
      border: 0;
      border-top: 1px solid #eee;
    }
    .col-item {
      margin-bottom: 20px;
    }

    ul {
      padding: 0;
      margin: 0;
    }

    font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #676a6c;
    overflow-x: hidden;

    ul {
      list-style-type: none;
    }

    h4 {
      margin-top: 0px;
    }

    h2 {
      margin-top: 10px;
      font-size: 26px;
      font-weight: 100;
    }

    p {
      margin-top: 10px;

      b {
        font-weight: 700;
      }
    }

    .update-log {
      ol {
        display: block;
        list-style-type: decimal;
        margin-block-start: 1em;
        margin-block-end: 1em;
        margin-inline-start: 0;
        margin-inline-end: 0;
        padding-inline-start: 40px;
      }
    }
  }
  .text {
    font-size: 14px;
  }

  .item {
    margin-bottom: 18px;
  }

  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }
  .clearfix:after {
    clear: both
  }

  .box-card {
    width: 480px;
  }

  .box-card2 {
    width: 280px;
  }

  .box-card3 {
    width: 400px;
  }

</style>



